package cn.hd.dao;

import cn.hd.entity.Product;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ProductDao {
    //添加
    public int addProduct(Product product);
    //删除
    public int delProduct(long id);
    //根据name查询

    public List<Product> selectByNameProduct(Map map);
}
